<template>
	<view class="content">
		<view class="btn">
			<button type="default" @click="scan">扫描</button>
		</view>
		<!-- <view class="admin">
			<view>{{msg}}</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				msg: ""
			}
		},
		methods: {
			scan() {	
				uni.scanCode({
					success: (res) => {
						
						this.msg = res.result
						console.log(this.msg)
						let kk = this.msg+"?id=1"
						console.log(kk)
						uni.navigateTo({							
						    url: kk,						
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
@import 'index.scss';
page {
	background-color: #f5f5f5;
}
.wrap .search{
	background: #ffffff;
}
.apply-text{
	font-size: 28rpx;
	color: #333333;
	span{
		color: #999999;
	}
}
.user-images{
	width: 28px;
	height:28px;
	margin-right: 8px;
}
.apply-list-foot{
	font-size: 28rpx;
}
.personnel-list{
	display: flex;
	align-items: center;
	flex-wrap:wrap;
	.personnel-user{
		position: relative;
		margin: 5px 9px 0;
	}
	.user-images{
		width: 48px;
		height:48px;
		margin-right:0;
		
	}
	.iconfont{
		position: absolute;
		top:-12px;
		right:-5px;
		color: #FE0100;
	}
}
</style>
